/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业地址信息Entity
 * @author wzl
 * @version 2018-10-12
 */
public class AddressInfo extends DataEntity<AddressInfo> {
	
	private static final long serialVersionUID = 1L;
	private String tableId;		// 表ID
	private String tableName;		// 表名
	private String province;		// 省
	private String city;		// 市
	private String county;		// 县
	private String wholeAddr;		// 行政区划全地址
	private String detail;		// 详细地址
	private String lng;		// 经度
	private String lat;		// 纬度
	private Integer version;		// 版本
	
	public AddressInfo() {
		super();
	}

	public AddressInfo(String id){
		super(id);
	}

	@Length(min=0, max=64, message="表ID长度必须介于 0 和 64 之间")
	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}
	
	@Length(min=0, max=64, message="表名长度必须介于 0 和 64 之间")
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	@Length(min=0, max=2, message="省长度必须介于 0 和 2 之间")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=4, message="市长度必须介于 0 和 4 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=6, message="县长度必须介于 0 和 6 之间")
	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}
	
	@Length(min=0, max=100, message="行政区划全地址长度必须介于 0 和 100 之间")
	public String getWholeAddr() {
		return wholeAddr;
	}

	public void setWholeAddr(String wholeAddr) {
		this.wholeAddr = wholeAddr;
	}
	
	@Length(min=0, max=100, message="详细地址长度必须介于 0 和 100 之间")
	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	@Length(min=0, max=50, message="经度长度必须介于 0 和 50 之间")
	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}
	
	@Length(min=0, max=50, message="纬度长度必须介于 0 和 50 之间")
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}
	
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
	
}